package com.yang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import javax.sql.DataSource;

/**
 * Hello world!
 *
 */
@SpringBootApplication
public class App {
    public static void main( String[] args ) {
        ConfigurableApplicationContext context = SpringApplication.run(App.class, args);
        DataSource bean = context.getBean(DataSource.class);
        // 查看当前底层使用的数据源
        System.out.println(bean.getClass());
    }


//    DataSource dataSource(){
//        return new
//    }

}
